/*
 * Copyright 2008-2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ssn.common.code.service.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import ssn.common.code.vo.CodeVO;

import egovframework.rte.psl.dataaccess.EgovAbstractDAO;


/**  
 * @Class Name : 
 * @Description : 
 * @Modification Information  
 * @
 * @  수정일      수정자              수정내용
 * @ ---------   ---------   -------------------------------
 * 
 * @since 2013. 09.30
 * @version 1.0
 * @see
 */
@SuppressWarnings("rawtypes")
@Repository("codeDAO")
public class CodeDAO extends EgovAbstractDAO {

	public void insertCodeInfo(CodeVO vo) throws Exception{
		insert("insertCodeInfo", vo);
	}
	public void insertCodeInfo(List vo) throws Exception{
		insert("insertCodeInfoArray", vo);
	}
	public void updateCodeInfo(CodeVO vo) throws Exception{
		update("updateCodeInfo", vo);
	}
	public void updateCodeInfo(List vo) throws Exception{
		update("updateCodeInfoArray", vo);
	}
	public void deleteCodeInfo(CodeVO vo) throws Exception{
		update("deleteCodeInfo", vo);
	}
	public List selectCodeList(CodeVO vo) throws Exception{
		return list("selectCodeList", vo);
	}
	public List selectCodeInfoList(String refKey) throws Exception{
		return list("selectCodeInfoList", refKey);
	}
	public int selectCodeListCnt(CodeVO vo) throws Exception{
		return Integer.parseInt(selectByPk("selectCodeListCnt", vo).toString());
	}
	public CodeVO selectCodeInfo(CodeVO vo) throws Exception{
		return (CodeVO)selectByPk("selectCodeInfo", vo);
	}
	
	public List selectCodeInfoListOrderBy(String refKey) throws Exception{
		return list("selectCodeInfoListOrderBy", refKey);
	}
}
